package edu.cqie.demo01;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Proxy
 *
 * @Author XiaoZhou
 * @Date 2023/10/17 18:48
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Proxy implements Rent {
    private Host host;

    @Override
    public void rent() {
        seeHouse();
        host.rent();
        hetong();
        fare();
    }

    public void seeHouse() {
        System.out.println("中介带你看房");
    }

    public void fare() {
        System.out.println("收中介费");
    }

    public void hetong() {
        System.out.println("签租赁合同");
    }


}
